<?php if(!class_exists('raintpl')){exit;}?><?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("header") . ( substr("header",-1,1) != "/" ? "/" : "" ) . basename("header") );?>

<?php echo uniform('aristo'); ?>

<?php if( $dsfm_lang==en ){ ?>
	<?php echo jquery_validate(); ?>
<?php }else{ ?>
	<?php echo jquery_validate('th'); ?>
<?php } ?>

<div class ="wrapper">

	<div class = "main" id = "contact">
		<h1 class = "fr"><?php echo $e['contact-us'];?></h1>

		<div class = "content">
			<h2><?php echo $e['contact-info'];?></h2>

			<div class = "fr col1">
				<span class = "head"><?php echo $e['cha-am'];?></span>
				<span class = "detail"><?php echo $e['cha-am-office-address'];?></span>
				<span class = "tel"><b><?php echo $e['tel'];?></b> 0 2343 6921-8</span>
				<span class = "tel"><b><?php echo $e['fax'];?></b> 0 2343 7537</span>
				<span class = "tel"><b><?php echo $e['email'];?> :</b> <a href = "mailto:santoriniwaterfantasy@gmail.com">santoriniwaterfantasy@gmail.com</a></span>
			</div>

			<div class = "fl col1">
				<span class = "head"><?php echo $e['head-office'];?></span>
				<span class = "detail"><?php echo $e['office-address'];?></span>
				<span class = "tel"><b><?php echo $e['tel'];?></b> 0 2343 6921-8</span>
				<span class = "tel"><b><?php echo $e['fax'];?></b> 0 2343 7537</span>
			</div>

			<div class ="clear"></div>

			<div class = "contact-form">
				<h2><?php echo $e['contact-form'];?></h2>
				<form action = "contact-send.php" method = "post" id = "contact-form">
					<ul>
						<li>
							<label for = "faq"><?php echo $e['faq'];?> :</label>
							<select name = "sid" id = "faq">
								<?php $counter1=-1; if( isset($all_subject) && is_array($all_subject) && sizeof($all_subject) ) foreach( $all_subject as $key1 => $value1 ){ $counter1++; ?>
									<option value = "<?php echo $value1["id"];?>"><?php echo $value1["subject"];?></option>
								<?php } ?>
							</select>
						</li>
						<li><label for = "topic"><?php echo $e['subject'];?> :</label><input type = "text" id = "topic" name = "topic"  class = "input validate[required]"></li>
						<li><label for = "name"><?php echo $e['name'];?> :</label><input type = "text" id = "name" name = "name"  class = "input validate[required]"></li>
						<li><label for = "tel"><?php echo $e['telephone'];?> :</label><input type = "text" name = "tel" id = "tel" class = "input"></li>
						<li><label for = "email"><?php echo $e['email'];?> :</label><input type = "text" id = "email" name = "email"  class = "input validate[required,custom[email]]"></li>
						<li><label for = "message"><?php echo $e['detail'];?> :</label><textarea name = "message" id = "message"  class = "input" style = "height:100px;"></textarea></li>
					</ul>
					<input type = "submit" value = "submit" class = "btn-submit">
					<div class = "clear"></div>
				</form>
			</div>

			<div class = "map">
				<ul class = "tab">
					<li id = "tab1" class = "active">Google Map</li>
					<li id = "tab2">Graphic Map</li>
				</ul>
				<div class = "google-map display-map">
				<iframe width="650" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.th/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=santorini+water+fantasy+&amp;aq=&amp;sll=13.0376,101.491373&amp;sspn=23.180675,43.286133&amp;ie=UTF8&amp;hq=santorini+water+fantasy&amp;hnear=&amp;t=m&amp;ll=12.843436,99.948978&amp;spn=0.058578,0.11158&amp;z=13&amp;iwloc=A&amp;output=embed"></iframe><br />
				</div>
				<div class = "graphic-map display-map"><img src="http://localhost/waterfantasy/html/images/graphic.png"></div>
			</div>

		</div>
	</div>

	<div class = "sidebar">
		<ul>
			<li><?php echo $e['contact-us'];?></li>
			<li><a href = "contact.html"><?php echo $e['contact-us'];?></a></li>
			<li><a href = "career.html"><?php echo $e['career'];?></a></li>
		</ul>
	</div>
</div>

<script>
$(document).ready(function(){
	$("#tab1").click(function(){
		$(".google-map").show();
		$(".graphic-map").hide();
		$("#tab2").removeClass("active");
		$(this).addClass("active");
	});

	$("#tab2").click(function(){
		$(".google-map").hide();
		$(".graphic-map").show();
		$("#tab1").removeClass("active");
		$(this).addClass("active");
	});

	$("select").uniform();

	$("#contact-form").validationEngine();
});
</script>

<?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("footer") . ( substr("footer",-1,1) != "/" ? "/" : "" ) . basename("footer") );?>